package com.green.card.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by admin on 2018/1/25.
 */

public class ToastUtils {
    private static Toast toast;
    /**
     * 吐司
     * @param msg
     */
    public static void toast(Context context,String msg) {
        if (toast == null) {
            toast = Toast.makeText(context, msg, Toast.LENGTH_SHORT);
        } else {
            toast.setText(msg);
        }
        toast.show();
    }
}
